Name
The Name reference form specifies an object by name. Most applications determine this by examining an object's Name property.SYNTAX
className [ named ] nameStringwhereclassName is the class identifier for the specified object.
nameString is the value of the object's Name property (see "Notes").
EXAMPLES
document "Report"window named "Help"application "Macintosh HD:Applications:Scriptable Text Editor"NOTES
In some applications, it is possible to have multiple objects of the same class
in the same container with the same name. In such cases, it is up to the application to determine which object is specified by a Name reference.For applications and files, the nameString parameter can be a string of the form
"Disk:Folder1:Folder2:...FileName"
; for details, see "References to Files and Applications," which begins on page 145.For more information about Name properties of specific types of objects, see the definitions for object classes provided by the AppleScript documentation or the application's documentation.